package adminRequest

type RoomSeatListRequest struct {
	Page     int   `form:"page" json:"page" validate:"required"`
	JzwId    int64 `form:"jzw_id,default:0" json:"jzw_id,default:0" `
	FloorId  int64 `form:"floor_id,default:0" json:"floor_id,default:0"`
	RoomId   int64 `form:"room_id,default:0" json:"room_id,default:0"`
	PageSize int   `form:"pageSize,default:15" json:"pageSize,default:15"`
}

type AddRoomSeatRequest struct {
	JzwId      int64  `form:"jzw_id" json:"jzw_id" validate:"required"`
	FloorId    int64  `form:"floor_id" json:"floor_id" validate:"required"`
	RoomId     int64  `form:"room_id" json:"room_id" validate:"required" `
	SeatNumber string `form:"seat_number" json:"seat_number" validate:"required"`
}

type EditRoomSeatRequest struct {
	AddRoomSeatRequest
	Id int64 `form:"id" json:"id" validate:"required"`
}

type InitRoomRequest struct {
	JzwId     int64 `form:"jzw_id" json:"jzw_id" validate:"required"`         //建筑物
	FloorNum  int   `form:"floor_num" json:"floor_num" validate:"required"`   //层数
	RoomNum   int   `form:"room_num" json:"room_num" validate:"required"`     //每层房间数
	SeatTotal int   `form:"seat_total" json:"seat_total" validate:"required"` //房间的座位数
}

type ResetRoomRequest struct {
	Id        int64 `form:"id" json:"id" validate:"required" msg:"房间id必须存在"`
	SeatTotal int   `form:"seat_total" json:"seat_total" validate:"required" msg:"房间容量必须存在"` //房间的座位数
}
